package com.jiangsong.entity;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;

/**
 * @author jiangsong
 * @date 2021/4/15
 * id INT AUTO_INCREMENT PRIMARY KEY,
 * acc_no VARCHAR(50) NOT NULL,
 * vendi_no VARCHAR(10) NOT NULL,
 * begin_date CHAR(8) NOT NULL,
 * end_date CHAR(8) NOT NULL,
 * valid_flag CHAR(1) NOT NULL DEFAULT '1',
 * version INT DEFAULT 1,
 * created_stamp TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
 * updated_stamp TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
 **/
@EqualsAndHashCode(callSuper = true)
@Data
@Entity
@ToString(callSuper = true)
public class Product extends AbstractEntity {

    @Id
    @GeneratedValue
    private Integer id;

    private String accNo;

    private String vendiNo;

    private String beginDate;

    private String endDate;

    private String validFlag;

}
